import re

with open('urls.txt','r') as f:
    lines = f.readlines()
    for line in lines:
        result = re.search(r'https.+?com/', line)
        print(result.group())
